﻿namespace OboutInc
{
    using System;
    using System.Web.UI;

    internal class CallbackPanelLoading_Default : CallbackPanelLoading
    {
        private CallbackPanel container;

        public CallbackPanelLoading_Default(CallbackPanel container) : base(container)
        {
            this.container = container;
        }

        protected override void Render(HtmlTextWriter writer)
        {
            this.ID = (((this.container.ID == null) || this.container.ID.Equals(string.Empty)) ? this.container.ClientID : this.container.ID) + "_Loading";
            base.Style["overflow"] = "hidden";
            base.Style["padding"] = "0px";
            base.Style["display"] = "none";
            this.Controls.Add(new LiteralControl("<table cellpadding=0 cellspacing=0 style=\"font: 10px Verdana;\"" + (((base.Style["width"] != null) && (base.Style["width"].Length > 0)) ? " width=\"100%\"" : "") + (((base.Style["height"] != null) && (base.Style["height"].Length > 0)) ? " height=\"100%\"" : "") + "><tr><td align=\"center\">Loading...</td></tr></table>"));
            writer.Write("<div ");
            base.Attributes.Add("id", this.ID);
            base.Attributes.Render(writer);
            writer.Write(">");
            base.RenderContents(writer);
            writer.Write("</div>");
        }
    }
}

